package org.example.service;

import java.util.Date;

public class LogoutService {
    // 记录登出日志
    public void logLogout(String username) {
        if (username != null) {
            System.out.println("用户 " + username + " 于 " + new Date() + " 成功登出系统。");
        } else {
            System.out.println("未知用户尝试登出。");
        }
    }
}
